﻿using System;
using Microsoft.Extensions.Caching.Memory;

namespace Reader.Core.Cache
{
    interface ICache
    {
        void Set<T>(string key, T entity, MemoryCacheOptions options);
        void Set(string key, object entity, MemoryCacheOptions options);
        T Get<T>(string key);
        object Get(string key);
        bool Exists(string key);
        bool Remove(string key);
    }
}
